package com.army.cookbook;

import com.army.cookbook.slice.MainAbilitySlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;

public class MainAbility extends Ability {
    /**
     * 声明静态变量，用于获取生物识别对象
     */
    private static MainAbility myAbility;

    /**
     * 私有构造
     */
    public MainAbility() {
        myAbility = this;
    }

    /**
     * 获取ability
     *
     * @return MainAbility
     */
    public static MainAbility getMainAbility() {
        return myAbility;
    }

    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(MainAbilitySlice.class.getName());
    }
}
